.class Lcom/instagram/android/login/b/bs;
.super Lcom/instagram/android/d/j/a;
.source "UserPasswordRecoveryFragment.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/j/a",
        "<",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/instagram/android/login/b/bi;

.field private b:Lcom/instagram/android/login/d/l;


# direct methods
.method public constructor <init>(Lcom/instagram/android/login/b/bi;Lcom/instagram/android/login/d/l;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 241
    iput-object p1, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-direct {p0}, Lcom/instagram/android/d/j/a;-><init>()V

    .line 242
    iput-object p2, p0, Lcom/instagram/android/login/b/bs;->b:Lcom/instagram/android/login/d/l;

    .line 243
    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .prologue
    .line 270
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    iget-object v1, p0, Lcom/instagram/android/login/b/bs;->b:Lcom/instagram/android/login/d/l;

    invoke-static {v0, v1}, Lcom/instagram/android/login/b/bi;->a(Lcom/instagram/android/login/b/bi;Lcom/instagram/android/login/d/l;)V

    .line 271
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v0}, Lcom/instagram/android/login/b/bi;->c(Lcom/instagram/android/login/b/bi;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v1}, Lcom/instagram/android/login/b/bi;->f(Lcom/instagram/android/login/b/bi;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 272
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v0}, Lcom/instagram/android/login/b/bi;->c(Lcom/instagram/android/login/b/bi;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 273
    invoke-super {p0}, Lcom/instagram/android/d/j/a;->a()V

    .line 274
    return-void
.end method

.method protected a(Lcom/instagram/android/d/j/j;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 278
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Lcom/instagram/android/d/j/j;->c()Lch/boye/httpclientandroidlib/StatusLine;

    move-result-object v0

    if-nez v0, :cond_1

    .line 279
    :cond_0
    sget v0, Lcom/facebook/ba;->request_error:I

    invoke-static {v0}, Lcom/instagram/n/j;->a(I)V

    .line 282
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-virtual {v0}, Lcom/instagram/android/login/b/bi;->v()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 283
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v0}, Lcom/instagram/android/login/b/bi;->c(Lcom/instagram/android/login/b/bi;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 284
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v0}, Lcom/instagram/android/login/b/bi;->c(Lcom/instagram/android/login/b/bi;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v1}, Lcom/instagram/android/login/b/bi;->g(Lcom/instagram/android/login/b/bi;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 286
    :cond_2
    invoke-super {p0, p1}, Lcom/instagram/android/d/j/a;->a(Lcom/instagram/android/d/j/j;)V

    .line 287
    return-void
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 237
    check-cast p1, Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/instagram/android/login/b/bs;->a(Ljava/lang/String;)V

    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 248
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-virtual {v0}, Lcom/instagram/android/login/b/bi;->v()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 249
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v0}, Lcom/instagram/android/login/b/bi;->c(Lcom/instagram/android/login/b/bi;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 250
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v0}, Lcom/instagram/android/login/b/bi;->c(Lcom/instagram/android/login/b/bi;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v1}, Lcom/instagram/android/login/b/bi;->d(Lcom/instagram/android/login/b/bi;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 253
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    sget v1, Lcom/facebook/ba;->instagram_help_center:I

    invoke-virtual {v0, v1}, Lcom/instagram/android/login/b/bi;->b(I)Ljava/lang/String;

    move-result-object v0

    .line 254
    const-string v1, "http://help.instagram.com/374546259294234/"

    iget-object v2, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-virtual {v2}, Lcom/instagram/android/login/b/bi;->j()Landroid/support/v4/app/j;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/instagram/android/d/i/h;->a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    .line 257
    iget-object v2, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-static {v2}, Lcom/instagram/android/login/b/bi;->e(Lcom/instagram/android/login/b/bi;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-virtual {v3}, Lcom/instagram/android/login/b/bi;->l()Landroid/content/res/Resources;

    move-result-object v3

    invoke-static {v0, v2, v1, v3}, Lcom/instagram/android/login/c/b;->a(Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Landroid/content/res/Resources;)Landroid/text/SpannableStringBuilder;

    move-result-object v1

    .line 260
    iget-object v0, p0, Lcom/instagram/android/login/b/bs;->a:Lcom/instagram/android/login/b/bi;

    invoke-virtual {v0}, Lcom/instagram/android/login/b/bi;->v()Landroid/view/View;

    move-result-object v0

    sget v2, Lcom/facebook/aw;->fragment_user_password_recovery_textview_request_sent:I

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 262
    new-instance v2, Landroid/text/method/LinkMovementMethod;

    invoke-direct {v2}, Landroid/text/method/LinkMovementMethod;-><init>()V

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 263
    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 264
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 266
    :cond_0
    return-void
.end method
